package com.example.book.mapper;

import com.example.book.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.web.bind.annotation.Mapping;

@Mapper
public interface UserMapper {

    @Select("select * from user_info where user_name=#{username}")
    UserInfo login(String username, String password);


}
